package com.ssy.lingxi.member.merchant.entity;

import javax.persistence.*;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 会员考评历史记录表
 * @author yzc
 * @version 2.0.0
 * @date 2021/5/31
 */
@Entity
@Table(schema = "public", name = "ms_mc_member_appraisal_history",
        indexes = {@Index(name = "ms_mc_member_appraisal_history_appraisal_id_idx", columnList = "appraisalId"),})
public class MemberAppraisalHistoryDO implements Serializable {
    private static final long serialVersionUID = -7565525608880247355L;

    /**
     * 记录id
     */
    @Id
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "member_appraisal_history_seq")
    @SequenceGenerator(sequenceName = "ms_mc_member_appraisal_history_seq", name = "member_appraisal_history_seq", allocationSize = 1)
    private Long id;

    /**
     * 考评id
     */
    @Column
    private Long appraisalId;

    /**
     * 操作人员用户Id
     */
    @Column(columnDefinition = "int8")
    private Long operatorId;

    /**
     * 操作人员姓名
     */
    @Column(columnDefinition = "varchar(50)")
    private String operatorName;

    /**
     * 操作员角色名称
     */
    @Column(columnDefinition = "varchar(50)")
    private String operatorRoleName;

    /**
     * 操作人员组织机构名称
     */
    @Column(columnDefinition = "varchar(40)")
    private String operatorOrgName;

    /**
     * 操作人员职位
     */
    @Column(columnDefinition = "varchar(40)")
    private String operatorJobTitle;

    /**
     * 操作方法
     */
    @Column(columnDefinition = "varchar(20)")
    private String operation;

    /**
     * 状态
     */
    @Column(columnDefinition = "int2")
    private Integer status;

    /**
     * 状态描述
     */
    @Column(columnDefinition = "varchar(30)")
    private String statusName;

    /**
     * 操作时间
     */
    @Column(columnDefinition = "timestamp")
    private LocalDateTime createTime;

    /**
     * 操作说明
     */
    @Column(columnDefinition = "varchar(400)")
    private String remark;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getAppraisalId() {
        return appraisalId;
    }

    public void setAppraisalId(Long appraisalId) {
        this.appraisalId = appraisalId;
    }

    public Long getOperatorId() {
        return operatorId;
    }

    public void setOperatorId(Long operatorId) {
        this.operatorId = operatorId;
    }

    public String getOperatorName() {
        return operatorName;
    }

    public void setOperatorName(String operatorName) {
        this.operatorName = operatorName;
    }

    public String getOperatorRoleName() {
        return operatorRoleName;
    }

    public void setOperatorRoleName(String operatorRoleName) {
        this.operatorRoleName = operatorRoleName;
    }

    public String getOperatorOrgName() {
        return operatorOrgName;
    }

    public void setOperatorOrgName(String operatorOrgName) {
        this.operatorOrgName = operatorOrgName;
    }

    public String getOperatorJobTitle() {
        return operatorJobTitle;
    }

    public void setOperatorJobTitle(String operatorJobTitle) {
        this.operatorJobTitle = operatorJobTitle;
    }

    public String getOperation() {
        return operation;
    }

    public void setOperation(String operation) {
        this.operation = operation;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getStatusName() {
        return statusName;
    }

    public void setStatusName(String statusName) {
        this.statusName = statusName;
    }
}
